#pragma once

#include "SimpleBinaryData.h"

namespace PPLiveLogClient
{

// encryption class used to change log content to send,
class SimpleEncrypt
{
public:
	SimpleEncrypt(const char* pKey);
	virtual ~SimpleEncrypt(void);

	static SimpleBinaryData Encrypt(const CStringA& input, const char* pKey, int keySize=-1);
	SimpleBinaryData Encrypt(const CStringA& input) const;
private:
	CStringA _key;

	static SimpleBinaryData EncryptImpl(const CStringA& input, const char* pKey, int keySize);
};

}

